/**
 *
 */
package com.dhcc.frame.collection.list;

import java.util.concurrent.ConcurrentLinkedDeque;

/**
 * @author 谢进军
 *
 */
public class AddTask implements Runnable {

	private ConcurrentLinkedDeque<String> list;

	/**
	 *
	 */
	public AddTask( ConcurrentLinkedDeque<String> list ) {
		this.list = list;
	}
	@Override
	public void run() {
		String name = Thread.currentThread().getName();
		for (int i = 0; i < 10; i++) {
			list.add( name + ": Element " + i );
		}
	}

}
